﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace TJ_MainNameSpace
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (args.Length != 0)
            {
                TongJi_EMS._Management.AppPara.Instance.Para = args[0];
                switch (args[0])
                {
                    case TongJi_EMS._Management.ArgSTR.Normal:
                        Application.Run(new FormStart());
                        break;
                    case TongJi_EMS._Management.ArgSTR.Design:
                        TongJi_EMS._Management.ProjectManager.Instance.CurProjectName = "测试工程";
                        TongJi_EMS._Management.ProjectManager.Instance.CurProjectPath = "";
                        Application.Run(new MainDesignForm());
                        break;
                    case TongJi_EMS._Management.ArgSTR.SysRun:
                        TongJi_EMS._Management.ProjectManager.Instance.CurProjectName = "测试工程";
                        TongJi_EMS._Management.ProjectManager.Instance.CurProjectPath = "";
                        Application.Run(new RunningForm(args[1]));
                        break;
                    default:
                        break;
                }
            }
            else
                Application.Run(new FormStart());
            //Application.Run(new ToolBox());//图库测试
            //Application.Run(new HistoryData());//报表测试
            //Application.Run(new FormSourceConfig());//数据源测试
        }


    }
}